package org.gowk.toolkit.expdbdoc;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

import org.gowk.toolkit.expdbdoc.doc.DBUtils;
import org.gowk.toolkit.expdbdoc.doc.ExpDic;
import org.gowk.toolkit.expdbdoc.doc.Parameters;
import org.gowk.toolkit.expdbdoc.doc.Word2007;
import org.gowk.toolkit.expdbdoc.util.CMDHelper;

public class ExpDoc {

	public static void main(String[] args) {
		try {
			Parameters parameters = CMDHelper.parseCommand("-h localhost -P 3306 -u root -p password -d databasename -t _NULL_ --path f:/");
			DBUtils dbUtils = new DBUtils(parameters);
			Map<String, HashMap<String, LinkedHashMap<String, String>>> data = dbUtils.getDatabaseInfo();
			//Word2007.productWordForm(data, parameters);
			ExpDic.productWordForm(data, parameters);
			System.out.println("完成");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
